<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="../plugins/element-ui/index.css"/>
    <link rel="stylesheet" href="../css/common.css"/>
    <link rel="stylesheet" href="../css/page.css"/>
</head>
<body>
<div class="addBrand-container" id="app">
    <div class="container">
        <el-form
                ref="ruleForm"
                :model="ruleForm"
                :inline="false"
                label-width="180px"
                class="demo-ruleForm"
        >
            <el-form-item label="代理类型:" prop="proxyType">
                <el-select v-model="ruleForm.proxyType" placeholder="请选择">
                    <el-option
                            v-for="item in proxyTypeList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item
                    label="域名:"
                    prop="domain"
            >
                <el-input
                        v-model="ruleForm.domain"
                        placeholder="域名"
                        maxlength="20"
                />
            </el-form-item>

            <el-form-item
                    label="代理IP:"
                    prop="configIp"
            >
                <el-input
                        v-model="ruleForm.configIp"
                        placeholder="代理IP"
                        maxlength="20"
                />
            </el-form-item>
            <el-form-item
                    label="代理端口:"
                    prop="configIp"
            >
                <el-input
                        v-model="ruleForm.configPort"
                        placeholder="代理端口"
                        maxlength="20"
                />
            </el-form-item>
            <div class="subBox address">
                <el-form-item>
                    <el-button @click="goBack()">
                        取消
                    </el-button>
                    <el-button
                            type="primary"
                            @click="submitForm()"
                    >
                        保存
                    </el-button>
                </el-form-item>
            </div>
        </el-form>
    </div>
</div>
<!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="../plugins/vue/vue.js"></script>
<!-- 引入组件库 -->
<script src="../plugins/element-ui/index.js"></script>
<!-- 引入axios -->
<script src="../plugins/axios/axios.min.js"></script>
<script>
    new Vue({
        el: '#app',
        data() {
            return {
                id: '',
                ruleForm: {
                    proxyType:'',
                    domain:'',
                    configIp:'',
                    configPort:''
                },
                proxyTypeList: [
                    {
                        value: 'TCP',
                        label: 'TCP'
                    }, {
                        value: 'HTTP',
                        label: 'HTTP'
                    }, {
                        value: 'HTTPS',
                        label: 'HTTPS'
                    }]
            }
        },
        computed: {
            rules() {
                return {
                    //账号

                }
            }
        },
        created() {

        },
        mounted() {
        },
        methods: {

            submitForm() {
                alert("保存成功")
            },
            goBack() {
                history.back();
            }
        }
    })
</script>
</body>
</html>